package cc.ucanuup.service.base.dao;

import java.io.Serializable;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import cc.ucanuup.service.base.entity.RelationRoleResource;

/**
 * Description: TODO[描述该类概要功能介绍]
 *
 * @author guwenbin
 * @date 2018年2月3日
 * @version 1.0
 */
public interface RelationRoleResourceJPA  extends JpaRepository<RelationRoleResource, Serializable>,JpaSpecificationExecutor<RelationRoleResource>{

	@Query(value="select T FROM RelationRoleResource T Where T.roleId = ?1 and T.resourceId = ?2")
	RelationRoleResource findOneByRoleIdAndResId(String roleId, String resId);

}
